package 多线程初阶.示例测试;

/**
 *  NEW ,RUNNABLE,TERMINATED 状态的转换
 */
public class TestDemo10 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread=new Thread(()->{
            for (int i = 0; i <1000_0000 ; i++) {
            }
        });
        System.out.println(thread.getName()+" : "+thread.getState());
        thread.start();
        System.out.println(thread.getName()+" : "+thread.getState());
        thread.join();
        System.out.println(thread.getName()+" : "+thread.getState());
    }
}
